.class public Lcom/xingbook/audio/c/a;
.super Ljava/lang/Object;


# instance fields
.field public a:Landroid/content/Context;

.field public b:Lcom/xingbook/audio/b/a;

.field c:Lcom/xingbook/audio/c/b;

.field private d:Lcom/xingbook/service/download/f;

.field private e:Lcom/xingbook/park/d/e;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/xingbook/audio/b/a;Lcom/xingbook/service/download/f;Lcom/xingbook/audio/c/b;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/xingbook/audio/c/a;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/xingbook/audio/c/a;->b:Lcom/xingbook/audio/b/a;

    iput-object p3, p0, Lcom/xingbook/audio/c/a;->d:Lcom/xingbook/service/download/f;

    iput-object p4, p0, Lcom/xingbook/audio/c/a;->c:Lcom/xingbook/audio/c/b;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/audio/c/a;->e:Lcom/xingbook/park/d/e;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 6

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/audio/c/a;->b:Lcom/xingbook/audio/b/a;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/audio/c/a;->e:Lcom/xingbook/park/d/e;

    iget-object v1, p0, Lcom/xingbook/audio/c/a;->b:Lcom/xingbook/audio/b/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/d/e;->a(Lcom/xingbook/audio/b/a;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/audio/c/a;->b:Lcom/xingbook/audio/b/a;

    invoke-virtual {v0}, Lcom/xingbook/audio/b/a;->h()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/audio/c/a;->c:Lcom/xingbook/audio/c/b;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/c/a;->c:Lcom/xingbook/audio/c/b;

    invoke-interface {v0}, Lcom/xingbook/audio/c/b;->a()V

    :cond_0
    :goto_1
    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/audio/b/b;

    iget-object v2, p0, Lcom/xingbook/audio/c/a;->d:Lcom/xingbook/service/download/f;

    invoke-virtual {v0}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0}, Lcom/xingbook/audio/b/b;->u()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0}, Lcom/xingbook/audio/b/b;->ah()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0}, Lcom/xingbook/audio/b/b;->X()I

    move-result v0

    invoke-interface {v2, v3, v4, v5, v0}, Lcom/xingbook/service/download/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/audio/c/a;->a:Landroid/content/Context;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/c/a;->a:Landroid/content/Context;

    const-string v1, "\u6570\u636e\u5e93\u63d2\u5165\u5931\u8d25"

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/xingbook/audio/c/a;->a:Landroid/content/Context;

    const-string v1, "\u4e0b\u8f7d\u5931\u8d25\uff1a\u4e13\u8f91\u6570\u636e\u4e0d\u5b8c\u6574~"

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1
.end method
